package com.websocketdemo.demo.WebSocket.service.imple;

import com.websocketdemo.demo.WebSocket.dao.mapper;
import com.websocketdemo.demo.WebSocket.entity.UserEntity;
import com.websocketdemo.demo.WebSocket.service.inter.Ituser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userImpl implements Ituser {
    @Autowired(required = true)
    mapper m;

    @Override
    public void insertuser(UserEntity userEntity) {
        m.insertUser(userEntity);
    }

    @Override
    public String findUser(String username) {
        return m.findUser(username);
    }
}
